package com.beidu.lottery.call.entity.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 活动基础信息
 * </p>
 *
 * @author 北渡
 * @since 2023-08-09
 */
@Data
@Builder
@ApiModel(value = "ActivityInfoListVO")
@NoArgsConstructor
@AllArgsConstructor
public class ActivityInfoListVO implements Serializable {


    @ApiModelProperty(value = "活动ID")
    private Integer id;

    @ApiModelProperty(value = "活动封面图Url")
    private String coverImgUrl;

    @ApiModelProperty(value = "活动名称")
    private String activityName;

    @ApiModelProperty(value = "活动类型(0-报名活动、1-投票活动)")
    private Integer activityType;

    @ApiModelProperty(value = "活动状态(0-进行中、1-未开始、2-已结束)")
    private Integer activityStatus;

    @ApiModelProperty(value = "活动状态(0:下架, 1:上架, 2:草稿)")
    private Integer groundingStatus;

    @ApiModelProperty(value = "创建人名称")
    private String creatorName;

    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdDate;

    @ApiModelProperty(value = "活动开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime activityBeginTime;

    @ApiModelProperty(value = "活动结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime activityEndTime;

    @ApiModelProperty(value = "是否分享-成为模板(0:不分享, 1:分享)")
    private Integer share;

    @ApiModelProperty(value = "活动URL")
    private String activityUrl;


}
